import http from './request'
// 获取分享密钥 签名 时间戳
// 11:50/app/appsystem/common/getWechatShareConfig
export const getWechatShareConfig = (url)=>{
	return http.request({
		url:`app/system/common/getWechatShareConfig?url=${url}`,
		method:'get',
	})
}
// 127.0.0.1:9561/app/appsystem/user/queryAppUserInfo/:userId

export const queryAppUserInfo = (userId)=>{
	if(!userId){
		userId=""
	}
	return http.request({
		url:`app/appsystem/user/queryAppUserInfo/${userId}`,
		method:'get',
	})
}
// 127.0.0.1:9561/app/appsystem/systemConfig/getsystemConfigValue
// 查询系统参数配置
export const getsystemConfigValue = (configKey)=>{
	return http.request({
		url:`app/appsystem/systemConfig/getsystemConfigValue`,
		method:'get',
		data:{
			"configKey":configKey,
		}
	})
}
// /app/system/common/getAppDownloadUrl?deviceType=PC
// PC ANDROID IOS XCX
export const getAppDownloadUrl = (url)=>{
	return http.request({
		url:`app/system/common/getAppDownloadUrl?deviceType=ANDROID`,
		method:'get',
	})
}
// app/system/shopInfo/getShopInfoByld
export const getShopInfoById = (shopId)=>{
	return http.request({
		url:`app/system/shopInfo/getShopInfoById?shopId=${shopId}`,
		method:'get',
	})
}
///app/system/shopInfo/collageList
export const getShopcollageList = (shopId)=>{
	return http.request({
		url:`app/system/shopInfo/collageList?shopId=${shopId}&pageSize=10&pageNum=1&status=1`,
		method:'get',
	})
}